import request from '@/utils/request'
// 分页查询
export function listroomOrderByPage(params) {
  return request({
    url: '/roomOrder/page',
    method: 'get',
    params: params
  })
}

// 添加数量,用于开始一个新的订单
export function makeNewOrder(params) {
  return request({
    url: '/roomOrder/makeNewOrder',
    method: 'get',
    params: params
  })
}

// 增加订单信息
export function enterOrder(params) {
  return request({
    url: '/roomOrder/enterOrder',
    method: 'get',
    params: params
  })
}

// 确认订单，生成订单，插进数据库
export function endEnter(data) {
  return request({
    url: '/roomOrder/endEnter',
    method: 'get',
    data: data
  })
}

// 获取可用房型对应的数量
export function selectTypeNum(params) {
  return request({
    url: '/roomOrder/selectTypeNum',
    method: 'get',
    params: params
  })
}

